import java.util.Scanner;
import  java.util.Random;
public class Guessnum {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int j = s.nextInt();
        System.out.println("输入的整数是："+j);
        Random rand = new Random();
        int r = rand.nextInt( 1000 ) ;
        System.out.println("产生的随机整数是："+r);
        int count=0;
        while(true){
			
			if(count == 10){
				System.out.println("下次再来");
				break;
			}
			if(j>r){
                System.out.println("太大了，再小一点");
                j = s.nextInt();
				
			}
			else if(r> j){
                System.out.println("太小了，再大一点");
                 j = s.nextInt();
            }
			else{
                System.out.println("猜对了");
                break;
            }
			
			count++;
		}
			
		s.close();
        
         }
}